how to use a CTE in a microsoft sql server select statement